package com.mifengs.mall.di.module;

import com.mifengs.commonbase.di.scope.ActivityScope;
import com.mifengs.commonbase.di.scope.FragmentScope;
import com.mifengs.mall.ui.my.RedPacketContract;
import com.mifengs.mall.ui.my.RedPacketPresent;

import dagger.Module;
import dagger.Provides;

/**
 * Created by lihaoqi on 2018/1/29.
 */

@Module
public class RedPacketModule {

    public final RedPacketContract.View mView;

    public RedPacketModule(RedPacketContract.View mView) {
        this.mView = mView;
    }

    @FragmentScope
    @Provides
    public RedPacketPresent providePresenter() {
        return new RedPacketPresent(mView);
    }
}
